package cate.common.table.role.vip;

import cate.common.table.EExcelNoteField;
import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteField;

public class RoleVipRow extends ERow {

    @NoteField(value = "等级")
    public int level;

    @NoteField(value = "升级经验")
    public int levelUpExp;

    @NoteField(value = "特权礼包")
    public String giftStr;

    @NoteField(value = "特权礼包碎钻消耗")
    public String giftConsumeStr;

    @NoteField(value = "特权福利")
    public String rewardStr;

    @NoteField(value = "专属奖励")
    public String levelRewardStr;

    @NoteField(value = "英雄背包格子上限")
    public int heroBagExtraCapacity;

    @NoteField(value = "藏宝阁刷新次数购买")
    public int mallRefreshTimes;

    @NoteField(value = "主角经验挂机收益")
    public double hangExpRatio;

    @NoteField(value = "金币挂机收益")
    public double hangM0Ratio;

    @NoteField(value = "食灵经验挂机收益")
    public double hangHeroExpRatio;

    @NoteField(value = "点金金币额外次数")
    public int goldComeOnTimes;

    @NoteField(value = "主线挂机时长")
    public int hangMinites;

    @NoteField(value = "庄园挂机时长")
    public int manorHangMinites;

    @NoteField(value = "日常副本兑换次数")
    public int dailyFbBuyTimes;

    @NoteField(value = "协会boss购买次数")
    public int guildBossBuyTimes;

    @NoteField(value = "食神争霸挑战券兑换")
    public int ticketNum;

    @NoteField(value = "邮件ID")
    public int mailId;

    @NoteField(value = "提前解锁心愿召唤")
    public boolean unlockWishCall;

    @NoteField(value = "提前开启战斗3倍速")
    public boolean rate3Open;

    @NoteField(value = "解锁资格赛跳过")
    public boolean pointRaceFastOver;

    @EExcelNoteField(fieldName = "星格（吉星）开启次数")
    public int spiceCallLuckyTimes;

    @EExcelNoteField(fieldName = "情报值上限")
    public int adventureTaskValueMax;

    @Override
    public void parse(XSSFRowWrap xr) {
        super.parse(xr);
        this.id = xr.getInteger("VIP等级", 0);
        this.level = xr.getInteger("VIP等级", 0);
        this.levelUpExp = xr.getInteger("升级经验", 0);
        this.giftStr = xr.getString("特权礼包");
        this.giftConsumeStr = xr.getString("特权礼包碎钻消耗");
        this.rewardStr = xr.getString("特权福利");
        this.levelRewardStr = xr.getString("专属奖励");
        this.mallRefreshTimes = xr.getInteger("藏宝阁刷新次数购买",0);
        this.hangExpRatio = xr.getDouble("主角经验挂机收益", 1.0);
        this.hangM0Ratio = xr.getDouble("金币挂机收益", 1.0);
        this.hangHeroExpRatio = xr.getDouble("食灵经验挂机收益", 1.0);
        this.hangMinites = xr.getInteger("主线挂机时长", 60);
        this.manorHangMinites = xr.getInteger("庄园挂机时长", 60);
        this.goldComeOnTimes = xr.getInteger("点金金币额外次数", 0);
        this.heroBagExtraCapacity = xr.getInteger("英雄背包格子上限", 0);
        this.dailyFbBuyTimes = xr.getInteger("日常副本兑换次数", 0);
        this.guildBossBuyTimes = xr.getInteger("协会boss购买次数", 0);
        this.ticketNum = xr.getInteger("食神争霸挑战券兑换", 0);
        this.mailId = xr.getInteger("邮件ID", 0);
        this.unlockWishCall = xr.getBoolean("提前解锁心愿召唤",false);
        this.rate3Open = xr.getBoolean("提前开启战斗3倍速",false);
    }
}
